//
//  videomaker.h
//  ffmpegWrapper
//
//  Created by huchundong on 16/3/26.
//  Copyright © 2016年 xiaomi. All rights reserved.
//

#ifndef videomaker_h
#define videomaker_h

#include <stdio.h>
#include <stdbool.h>

typedef struct ILFormatContext{
    void *pFmtCtx;
    int64_t  pts;
}ILFormatContext;

bool initFmtCtx(ILFormatContext* ILFmtCtx,const char* tempVideoPath,float width,float height,int frameRate);
void stopAsynCaptureVideo(ILFormatContext* ILFmtCtx);
void writeFrame(ILFormatContext* ILFmtCtx,void* videoFrame);
void writePacket(ILFormatContext* ILFmtCtx,void* pkt);
void writeAudio(void* data, int len);
void writeVideo(void* data, int len);
void setFrameRate(ILFormatContext* ILFmtCtx, int frameRate );
#endif /* videomaker_h */
